home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 3112 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  736 b 

  1. Path: maths.tcd.ie!not-for-mail
  2. From: dwmalone@maths.tcd.ie (David Malone)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: *SLOW* colour cycling.. :(
  5. Date: 11 Feb 1996 12:14:03 -0000
  6. Organization: Dept. of Maths, Trinity College, Dublin, Ireland.
  7. Message-ID: <4fkmib$36p@hamilton.maths.tcd.ie>
  8. References: <311c0fb8@beachyhd.demon.co.uk>
  9. NNTP-Posting-Host: hamilton.maths.tcd.ie
  10.  
  11. Adam@beachyhd.demon.co.uk writes:
  12.  
  13. >    for (i=0; i<Colours; i++)
  14. >    {
  15. >      
  16. >SetRGB32(&(Screen1->ViewPort),i,Red[currcycle],Green[currcycle],Blue[currcycle]);
  17.  
  18. >       currcycle = (currcycle+1) % Colours;
  19. >    }
  20.  
  21. Isn't there a system call that takes an array of colours ? You could
  22. rotate the array and then call this - way less overhead.
  23.  
  24.     David.
  25.